/*
 * node.c
 *
 *  Created on: 05/11/2010
 *      Author: dela
 */

#include "node.h"

/**
 *
 */
void node_destroy( TNode *node ) {
	while ( !ls_Vacia(node->ids) ) {
		ls_BorrarCorrienteLight(&(node->ids));
	}

	while ( !ls_Vacia(node->nodes) ) {
		ls_BorrarCorrienteLight(&(node->nodes));
	}
}

void node_reset( TNode *node ) {
	ls_VaciarLight( &(node->ids) );
}
